<div class="post">
    <h1 class="title">
        ${postInstance.title.encodeAsHTML()}
    </h1>
    <div class="entry">
        ${postInstance?.content}
    </div>
	<div class="meta">
		<g:render template="/shared/byLineTemplate" model="[postInstance: postInstance]"/>
		<p class="links">
            <b>|</b> <a href="#" class="comments">评论(${postInstance?.comments?.size()})</a>
            <b>|</b>
            <g:if test="${session.loginID == postInstance?.author.id}">
                <div class="commentContent">
                    <g:link controller="post" action="edit" id="${postInstance?.id}">修改</g:link>
                </div>
            </g:if>
        </p>
	</div>
    <h3 class="title">评论：</h3><a name="comments"></a>
        
    <g:render template="/shared/postedCommentsTemplate" model="[comment : comment]"/>
</div>